package com.dick.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <pre>
 * "ID" BIGINT NOT NULL,
 * "NAME" VARCHAR(64) NOT NULL,
 * "MENU_CODE" VARCHAR(128) NOT NULL,
 * "AUTHORITY_CODE" VARCHAR(128) NOT NULL,
 * "PARENT_ID" BIGINT,
 * "CREATE_TIME" DATETIME(6),
 * "UPDATE_TIME" DATETIME(6),
 * "DELETED" TINYINT DEFAULT 0 NOT NULL,
 * </pre>
 *
 */
@Data
@TableName("BASE_MENU_ITEM")
public class BaseMenuItem {
    @TableId(type = IdType.INPUT)
    private Long id;
    private String name;
    private String menuCode;
    private String authorityCode;
    private Integer sortCode;
    private Long parentId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    @TableLogic
    private Boolean deleted;
}
